package com.tedu.cloud_vehicle_plus.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

@Data
public class UserRegParam {
    @Size(min = 6,max = 12,message = "用户名长度为6-12位之间")
    @ApiModelProperty(value = "用户名",required = true)
    private String username;
    @ApiModelProperty(value = "密码",required = true)
    private String password;
    @ApiModelProperty(value = "邮箱",required = true)
    private String email;
    @ApiModelProperty(value = "手机号码",required = true)
    private String phone;
}
